package net.wsfcp.android.http.mvp.contract;

import net.wsfcp.android.bean.resultbean.UserBean;
import net.wsfcp.android.bean.resultbean.PublicKeyBean;

/**
 * Created by Shaoboyang on 2018/12/14.
 * 契约类,定义登录用到的一些接口方法
 */

public class MyContract {

    public interface MyView {


        void getPublicKeySuccess(PublicKeyBean publicKeyBean);

        void getPublicKeyFail(String failMsg);


        void autoLoginSuccess(UserBean bean);

        void autoLoginFail(String failMsg);
    }


    public interface MyPresenter {
        void getPublicKey();

        void autoLogin(String name,String pwd);
    }
}
